package com.quartz.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 代码描述
 * Copyright: Copyright (C) 2018 56qq, Inc. All rights reserved.
 * Company: 成都运力科技有限公司
 *
 * @author yu.su
 * @date 2018/9/26 14:30
 */
public class QuartzMain {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:/spring-config.xml");
        Object helloTask = context.getBean("helloTask");
        System.out.println(helloTask);
        try {
            while (true){
                Thread.sleep(10000L);
            }

        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
